package com.revenant.driver.adapter.Driver;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.revenant.driver.R;
import com.revenant.driver.bean.AreaShowBean;
import com.revenant.driver.bean.Driver.LianWangBen;
import com.revenant.driver.bean.Driver.LiangWangSecondBean;
import com.revenant.driver.bean.Driver.PingTaiBean;
import com.revenant.driver.bean.LianWangNewBean;

/**
 * @ProjectName: Shipper
 * @Package: com.revenant.shipper.adapter
 * @ClassName: MineBigItemAdapter
 * @Description: java类作用描述
 * @Author: revenant
 * @CreateDate: 2019-12-30 14:18
 * @UpdateUser: 更新者
 * @UpdateDate: 2019-12-30 14:18
 * @UpdateRemark: 更新说明
 * @Version: 1.0
 */
public class LianWangAdapter extends BaseQuickAdapter<LianWangNewBean.DataBean, BaseViewHolder> {
//public class LianWangAdapter extends BaseQuickAdapter<LiangWangSecondBean.DataBean.ResultBean, BaseViewHolder> {

    public LianWangAdapter() {
        super(R.layout.item_driver_lianwang);
    }

    @Override
    protected void convert(BaseViewHolder helper, LianWangNewBean.DataBean item) {
        helper.setText(R.id.start_place,
                item.getSetoutprovince() + " " +
                        item.getSetoutcity() + " "
                        + item.getSetoutcounty() + " "
        );
        helper.setText(R.id.end_place,
                item.getDestinationprovince() + " " +
                        item.getDestinationcity() + " "
                        + item.getDestcounty() + " "

        );

        helper.setText(R.id.type_and_weight, item.getInfo());
        helper.setText(R.id.time_published, String.valueOf(item.getSendtime()));

        helper.addOnClickListener(R.id.shengyu);

    }
}
